package com.cmccgz.baselibrary.base;

import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by Huang on 2017/6/5.
 */
public abstract class BaseHolder extends RecyclerView.ViewHolder {
    public View itemView;

    public BaseHolder(View itemView) {
        super(itemView);
        this.itemView = itemView;
        assignViews();
    }

    public View findViewById(int id) {
        return itemView.findViewById(id);
    }

    public abstract void assignViews();
    public abstract void instanceView(int position);

    protected View getItemView(){
        return itemView;
    }

}
